<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Smarty length_format modifier plugin for commercial.su
 *
 * Type:     modifier<br>
 * Name:     length_format<br>
 * Purpose:  format lengths via fconv<br>
 * Input:<br>
 *         - value: length value
 *         - src: source type (can be 1 for metric or 2 for british-american [foots/yards])
 *         - dest: destination type (see $src)
 * @author   Alex <qfox@ya.ru> Yaroshevich
 * @param numeric
 * @return string|void
 * @uses fconv
 */
function smarty_modifier_length_format( $value, $src = null, $dest = null)
{
	return fconv::length( $value, $src, $dest );
}

/* vim: set expandtab: */

?>
